﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OA.UserManager
{
    public class QueryResult<T>
    {
        #region 属性
        /// <summary>
        /// 总的记录数
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 总分页数
        /// </summary>
        public int PageCount { get; set; }
        /// <summary>
        /// 当前页码
        /// </summary>
        public int Page { get; private set; }

        private IList<T> dataList;

        public IList<T> DataList
        {
            get { return dataList; }
            //set { dataList = value; }
        }


        /// <summary>
        /// 每页记录数
        /// </summary>
        public int Size
        {
            get;
            private set;
        }
        #endregion
        public QueryResult(int page, int size)
        {
            this.Page = page;
            this.Size = size;
        }

    }
}
